package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.MemberAttachmentMapper;
import com.whq.entity.MemberAttachment;
import com.whq.service.MemberAttachmentService;

@Service(value = "tdMemberAttachmentService")
public class MemberAttachmentServiceImpl implements MemberAttachmentService {

    @Autowired
    private MemberAttachmentMapper<MemberAttachment>tdMemberAttachmentMapper;
    
    @Override
    public Integer insertSelective(MemberAttachment tdMemberAttachment) throws Exception {
           return this.tdMemberAttachmentMapper.insertSelective(tdMemberAttachment);
        }

    @Override
    public Integer insertBatch(List<MemberAttachment> tdMemberAttachment) throws Exception {
           return this.tdMemberAttachmentMapper.insertBatch(tdMemberAttachment) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdMemberAttachmentMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdMemberAttachmentMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(MemberAttachment tdMemberAttachment) {
           return this.tdMemberAttachmentMapper.updateByPrimaryKeySelective(tdMemberAttachment);
    }

    @Override
    public MemberAttachment findById(Object id) {
           return (MemberAttachment) this.tdMemberAttachmentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<MemberAttachment> selectByCondition(MemberAttachment tdMemberAttachment) {
           return (List<MemberAttachment>) this.tdMemberAttachmentMapper.selectByCondition(tdMemberAttachment);
    }

    @Override
    public Integer selectCountByCondition(MemberAttachment tdMemberAttachment) {
           return  this.tdMemberAttachmentMapper.selectCountByCondition(tdMemberAttachment);
    }

}
